home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
biz
/
demo
/
Electrics_demo.lha
/
Install
< prev
next >
Wrap
Text File
|
1996-02-28
|
6KB
|
220 lines
;*----------------------------------------------------------*
;* Installer script for the Electrics V1.1 Digital Designer *
;* *
;* NAME: Install *
;* DATE: February 10, 1996 *
;*----------------------------------------------------------*
(set DefaultDestination "Work:Electrics")
(set FileSource "" )
(set LibraryDirectory "libs" )
(complete 0)
;*--------------------------------------------------------------*
;* Request a destination drawer (except on the Beginner level). *
;* Otherwise, FileDestination is set to the default drawer. *
;*--------------------------------------------------------------*
(
set FileDestination
(
askdir (default DefaultDestination)
(newpath DefaultDestination)
(prompt "Electrics program files destination.")
(help "Destination Drawer\n\n"
"The installer will copy all Electrics files into the "
"selected Drawer (which may refer to a Volume or a Directory)."
" A new Drawer can be created, or an existing one can be "
"chosen from the list.")
)
)
;*------------------------------------------------------*
;* If the destination drawer does not exist, create it. *
;*------------------------------------------------------*
(
if (= (exists FileDestination (noreq)) 0)
(
(
makedir FileDestination
(prompt (cat "Creating the directory " FileDestination))
(help @makedir-help)
(infos)
)
)
)
;*--------------------------------------------------------*
;* Clean up any unnecessary files from previous versions. *
;*--------------------------------------------------------*
(run "delete " (tackon FileDestination "Electrics.Guide.#?"))
(run "delete " (tackon FileDestination "Examples") "all")
;*--------------------------------------*
;* Copy the Schematic program and icon. *
;*--------------------------------------*
(
copyfiles (source (tackon FileSource "Schematic"))
(dest FileDestination)
(infos)
)
(complete 6)
;*--------------------------------------*
;* Copy the Simulator program and icon. *
;*--------------------------------------*
(
copyfiles (source (tackon FileSource "Simulator"))
(dest FileDestination)
(infos)
)
(complete 12)
;*-----------------------------------*
;* Copy the Viewer program and icon. *
;*-----------------------------------*
(
copyfiles (source (tackon FileSource "Viewer"))
(dest FileDestination)
(infos)
)
(complete 18)
;*-----------------------------------*
;* Copy the Digits program and icon. *
;*-----------------------------------*
(
copyfiles (source (tackon FileSource "Digits"))
(dest FileDestination)
(infos)
)
(complete 24)
;*-----------------------------------------------------------------*
;* Copy the Project Manager program, icon, and configuration file. *
;*-----------------------------------------------------------------*
(
copyfiles (source (tackon FileSource "Project Manager"))
(dest FileDestination)
(infos)
)
(complete 30)
(
copyfiles (source (tackon FileSource "Project.cfg"))
(dest FileDestination)
)
(complete 36)
;*--------------------------------------------------------*
;* Copy the ARexx Shell program, icons, and support file. *
;*--------------------------------------------------------*
(
copyfiles (source (tackon FileSource "ARexx Shell"))
(dest FileDestination)
(infos)
)
(complete 42)
(
copyfiles (source (tackon FileSource "AShell.rexx"))
(dest FileDestination)
)
(complete 48)
;*---------------------------------------------*
;* Copy the Instructions, icon, and databases. *
;*---------------------------------------------*
(
copyfiles (source (tackon FileSource "Instructions"))
(dest FileDestination)
(infos)
)
(complete 54)
(
copyfiles (source (tackon FileSource "Instruction_Database"))
(dest (tackon FileDestination "Instruction_Database"))
(all)
)
(complete 60)
(
copyfiles (source (tackon FileSource "Picture_Database"))
(dest (tackon FileDestination "Picture_Database"))
(all)
)
(complete 66)
;*--------------------------------------------------*
;* Copy the ELEMENT, TTL, and Examples directories. *
;*--------------------------------------------------*
(
copyfiles (source (tackon FileSource "ELEMENT"))
(dest (tackon FileDestination "ELEMENT"))
(all)
)
(complete 76)
(
copyfiles (source (tackon FileSource "TTL"))
(dest (tackon FileDestination "TTL"))
(all)
)
(complete 86)
(
copyfiles (source (tackon FileSource "Examples"))
(dest (tackon FileDestination "Examples"))
(all)
)
(complete 96)
;*--------------------------------------------------------------*
;* Copy the 'reqtools.library' to LIBS:, unless a newer version *
;* is already present. *
;*--------------------------------------------------------------*
(
copylib (source (tackon (tackon FileSource LibraryDirectory) "reqtools.library"))
(dest "LIBS:")
(prompt "Electrics requires the ReqTools library.")
(help "ReqTools Library\n\n"
"Electrics requires the ReqTools library in order to run. "
"The file 'reqtools.library' will be copied to the LIBS:"
"directory if it is not already present. If an older version"
"is present, it will be replaced with a newer version.")
(confirm)
)
(complete 100)
(set @default-dest FileDestination)
(exit)